package service;

import pojo.User;

import java.util.List;

public interface UserService {

    //定义行为
    //查询用户
    List<User> findAll(User user,int offset,int pageSize);

    int addUser(User user);

    User findUserById(int id);

    int updateUser(User user);

    int count(User user);

    boolean login(User user);

    int deleteUser(Integer id);

    User findUserByUserName(String username);


    //查询用户
    //增加用户
    //删除用户
    //修改用户
}
